import 'package:flutter/painting.dart'; // 导入包含 Size 和 Color 类的库

// 空的模拟库，用于非 Windows 平台，避免编译错误
class WindowManager {
  // 模拟方法，避免编译错误
  Future<void> ensureInitialized() async {}
  Future<void> waitUntilReadyToShow(
    dynamic options,
    Function() callback,
  ) async {}
  Future<void> show() async {}
  Future<void> focus() async {}
  void addListener(dynamic listener) {}
  void removeListener(dynamic listener) {}
  Future<bool> isPreventClose() async => false;
}

class WindowOptions {
  final Size size;
  final bool center;
  final Color backgroundColor;
  final bool skipTaskbar;

  const WindowOptions({
    required this.size,
    required this.center,
    required this.backgroundColor,
    required this.skipTaskbar,
  });
}

mixin class WindowListener {
  void onWindowClose() async {}
}
